package com.study.sample.web;

import com.study.sample.entity.dto.DocumentDTO;
import com.study.sample.entity.vo.DocumentVO;
import com.study.sample.service.DocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class DocumentController {
    @Autowired
    private DocumentService documentService;

    @GetMapping("deepSearchPage")
    public DocumentVO deepSearchPage(HttpServletRequest request, DocumentDTO documentDTO) {
        return documentService.deepSearchPage(documentDTO, request);
    }
}
